<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Image
 *
 * @author 耿鸿飞 <eoe2005@gmail.com>
 */
class Image {
    const CODE_TYPE_INT = 1;
    const CODE_TYPE_CHAR = 2;
    const CODE_TYPE_INTORCHAR = 3;
    const CODE_TYPE_CHAIN = 4;
    public function resize(String $src,String $desc,Int $maxw,Int $maxh = 0){
        
    }
    public function water(String $src,String $watersrc){
        
    }
    public function code(Int $w,Int $h,Int $len,Int $type = Image::CODE_TYPE_INT){
        $im = imagecreatetruecolor($w, $h);
        imagefill($im,0,0);
        imagejpeg(im);
    }
}

?>
